﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

using System.Security;
using System.Security.Principal;

using CodePlex.Diagnostics;
using CodePlex.Diagnostics.Providers;

namespace CodePlex.SqlGenerator
{
    public partial class SqlGeneratorForm : Form
    {
        #region public SqlGenerator()

        /// <summary>
        /// Initializes a new instance of the <see cref="T:SqlGenerator"/> class.
        /// </summary>
        public SqlGeneratorForm()
        {
            try
            {
                InitializeComponent();

                this.Text = SR.GetString(SR.ApplicationTitle);

                Assembly assembly = Assembly.GetExecutingAssembly();

                this.Icon = new Icon(assembly.GetManifestResourceStream("CodePlex.SqlGenerator.SqlGenerator.ico"));
            }
            catch (Exception ex)
            {
                IIdentity identity = WindowsIdentity.GetCurrent() as IIdentity;
                ExceptionProvider.Publish(ex, identity);
            }
        }

        #endregion
    }
}
